import QtQuick 2.0
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.0
import "../common"
import "../form"
import "../../js/UI.js" as UI
import "../../js/util.js" as Util
BaseDialog {
    signal clicksignal
    property alias m_text: title.mtext
    property alias m_dialogText: dialogText.text
    signal clickConfirm()
    Rectangle{
        z:1
        width: parent.width*0.35
        height:parent.height*0.35
        border.width: 1
        border.color: "#E6E6E6";
        anchors.centerIn: parent
        color: "white"
        radius: m_lineValue*0.1
        TitleBar{
            id:title
            m_delete.visible: false
            width:parent.width
            height: parent.height*0.18
            anchors.top: parent.top
            anchors.left: parent.left
            mtext: "退出"
            onCanselsignal: {
            }
        }
        AText{
            id:dialogText
            anchors.top:title.bottom
            anchors.topMargin: m_lineValue*0.7
            anchors.horizontalCenter: parent.horizontalCenter
            text:"确定退出当前账号？"
            font.pointSize: 14
        }
        Row{
            spacing: 0.7*m_lineValue
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 0.7*m_lineValue
            anchors.horizontalCenter: parent.horizontalCenter
            PushButton{
                width: m_lineValue*1.4
                height: 0.5*width
                m_text:"确定"
                m_textfont:10
                radius: 0.05*m_lineValue
                onClickSignal: {
                    clickConfirm()
                }
            }
//            PushButton{
//                width: m_lineValue*1.4
//                height: 0.5*width
//                m_text:"取消"
//                m_textfont:10
//                radius: 0.05*m_lineValue
//                onClickSignal: clickCancel()
//            }
        }
    }
}
